Version 4
SHEET 1 1020 840
WIRE -864 -64 -864 -96
WIRE 336 -48 336 -96
WIRE 336 -48 144 -48
WIRE 512 -48 336 -48
WIRE 144 32 144 -48
WIRE 512 32 512 -48
WIRE -864 48 -864 16
WIRE 96 48 16 48
WIRE 640 48 560 48
WIRE 96 144 96 96
WIRE 560 144 560 96
WIRE -160 208 -272 208
WIRE -128 208 -160 208
WIRE 144 208 144 112
WIRE 144 208 -48 208
WIRE 288 208 144 208
WIRE 512 208 512 112
WIRE 512 208 368 208
WIRE 704 208 512 208
WIRE 816 208 784 208
WIRE 928 208 816 208
WIRE -864 256 -864 224
WIRE -160 272 -160 208
WIRE 144 272 144 208
WIRE 512 272 512 208
WIRE 816 272 816 208
WIRE 96 288 16 288
WIRE 640 288 560 288
WIRE -864 368 -864 336
WIRE -160 384 -160 352
WIRE 96 384 96 336
WIRE 560 384 560 336
WIRE 816 384 816 352
WIRE 144 480 144 352
WIRE 336 480 144 480
WIRE 512 480 512 352
WIRE 512 480 336 480
WIRE -864 576 -864 528
WIRE 336 624 336 480
WIRE 336 624 288 624
WIRE 384 624 336 624
WIRE -864 704 -864 656
WIRE 336 704 288 704
WIRE 384 704 336 704
WIRE 336 752 336 704
FLAG -864 48 0
FLAG -864 368 0
FLAG -864 -96 HB
IOPIN -864 -96 BiDir
FLAG -864 224 HA
IOPIN -864 224 BiDir
FLAG 16 48 HA
IOPIN 16 48 BiDir
FLAG 96 144 0
FLAG -864 704 0
FLAG -864 528 VCC
IOPIN -864 528 BiDir
FLAG 336 -96 VCC
IOPIN 336 -96 BiDir
FLAG 16 288 HB
IOPIN 16 288 BiDir
FLAG 96 384 0
FLAG 640 48 HB
IOPIN 640 48 BiDir
FLAG 560 144 0
FLAG 640 288 HA
IOPIN 640 288 BiDir
FLAG 560 384 0
FLAG 336 752 0
FLAG -160 384 0
FLAG 816 384 0
FLAG -272 208 ADC_R
FLAG 928 208 ADC_L
SYMBOL sw 144 128 M180
SYMATTR InstName S1
SYMATTR Value MySwitch
SYMBOL voltage -864 -80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(5 0 10u 1u 3.99m 1u 8m 10)
SYMBOL voltage -864 240 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 0 1u 4.02m 1u 8m 10)
SYMBOL Misc\\battery -864 560 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 12
SYMBOL sw 144 368 M180
SYMATTR InstName S2
SYMATTR Value MySwitch
SYMBOL sw 512 128 R180
SYMATTR InstName S3
SYMATTR Value MySwitch
SYMBOL sw 512 368 R180
SYMATTR InstName S4
SYMATTR Value MySwitch
SYMBOL res 272 608 R0
SYMATTR InstName R1
SYMATTR Value 33
SYMBOL res 368 608 R0
SYMATTR InstName R2
SYMATTR Value 33
SYMBOL res 384 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 500
SYMBOL res -32 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value {mc(200k,tol)}
SYMATTR SpiceLine tol=1
SYMBOL res -176 256 R0
SYMATTR InstName R5
SYMATTR Value {mc(10k,tol)}
SYMATTR SpiceLine tol=1
SYMBOL res 688 192 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value {mc(200k,tol)}
SYMATTR SpiceLine tol=1
SYMBOL res 832 256 M0
SYMATTR InstName R7
SYMATTR Value {mc(10k,tol)}
SYMATTR SpiceLine tol=1
TEXT -728 -144 Left 2 !.model MySwitch SW(Ron= 9.523188E-02 Roff=10000 Vt=3.5 Vh=0)
TEXT -344 616 Left 2 !.param tol=0.01
TEXT -344 656 Left 2 !.step param run 1 100 1
TEXT -936 776 Left 2 !.tran 0 6m 4m 1u
TEXT -344 792 Left 2 !.meas maxDiff PARAM abs(V(ADC_R)-V(ADC_L))
TEXT -344 824 Left 2 !.meas minDiff PARAM abs(V(ADC_R)-V(ADC_L))
